/*
 * This file is part of Super Luigi Bros.
 * Super Luigi Bros is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Super Luigi Bros is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Super Luigi Bros.  If not, see <http://www.gnu.org/licenses/>.
 */
package luigibros.logic;

import java.util.ArrayList;

import luigibros.obstacles.Obstacle;

public class Luigi extends ScreenOccupant implements Movable, Collidable, Destroyable{

        private LuigiType state;
        

        @Override
        public boolean processCollisions(ArrayList<ScreenOccupant[]> collisions) {
                for(int x = 0; x < collisions.size(); x++)
                {
                		if(collisions.get(x)[0].equals(this))
                		{
                			if(collisions.get(x)[1] instanceof Obstacle)
                				if(this.getDirection().toByte() == 2)
                				{
                					
                				}
                		}
                }
                return true;
                
        }

        
        public DirectionType getDirection() {
                // TODO Auto-generated method stub
                return null;
        }

        @Override
        public void setDirection(byte dir) {
                // TODO Auto-generated method stub
                
        }

        @Override
        public boolean moveToNextLocation(double location) {
                // TODO Auto-generated method stub
                return true;
        }

         public String getState() {return state.toString().toLowerCase();}

		@Override
		public DirectionType getDirectionType() {
			// TODO Auto-generated method stub
			return null;
		}
         
		public boolean destroy()
		{
			this.setVisible(false);
			return this.getVisible();
		}
}
